#ifndef APP_CONFIG_DIALOG_H
#define APP_CONFIG_DIALOG_H

#include <QtWidgets/QDialog>
#include "GeneratedFiles/ui_app_config_dialog.h"
#include "../target/data_interface.h"

class app_config_dialog : public QDialog
{
    Q_OBJECT

public:
    app_config_dialog(QWidget *parent);
    ~app_config_dialog();

public slots:
    void enable_location();
    void disable_location();
    void set_radar_location(double, double, double);
    void IvefLogin();

private:
    void init();
    void init_output();

private slots:
    void spinbox_value_changed(int);
    void color_changed();
    void radar_location_changed(double);
    void save();
    void radar_param_combox(int level);
    void param_checkbox(int val);
    void line_edit_val_changed(const QString &);
    void output_flag_changed(bool);
    void check_box_changed(bool);

signals:
    void target_color_changed(QColor color, unsigned int target_type, unsigned int color_set_type);
    void location_changed(double longitude, double latitude, double altitude);
    void compass_status_changed(bool val);

    void output_type_changed(unsigned int type);

private:
    Ui::appConfigDialog ui;

    bool is_radar_location_changed;
};

#endif // APP_CONFIG_DIALOG_H
